import java.awt.Frame;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JSlider;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.WindowConstants;

import org.dyno.visual.swing.layouts.Constraints;
import org.dyno.visual.swing.layouts.GroupLayout;
import org.dyno.visual.swing.layouts.Leading;
import org.dyno.visual.swing.layouts.Trailing;


//VS4E -- DO NOT REMOVE THIS LINE!
public class GUI extends JFrame {

	private static final long serialVersionUID = 1L;
	private JButton jButton0;
	public JSlider jSlider0;
	private static final String PREFERRED_LOOK_AND_FEEL = "com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel";
	public GUI() {
		initComponents();
	}

	private void initComponents() {
		setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
		setState(Frame.ICONIFIED);
		setExtendedState(3);
		setLocationByPlatform(true);
		setResizable(false);
		setAlwaysOnTop(true);
		setLayout(new GroupLayout());
		add(getJButton0(), new Constraints(new Leading(4, 10, 10), new Leading(2, 6, 6)));
		add(getJSlider0(), new Constraints(new Trailing(6, 872, 6, 6), new Leading(81, 80, 10, 10)));
		setSize(892, 294);
	}

	private JButton getJButton0() {
		if (jButton0 == null) {
			jButton0 = new JButton();
			jButton0.setText("jButton0");
		}
		return jButton0;
	}

	private JSlider getJSlider0() {
		if (jSlider0 == null) {
			jSlider0 = new JSlider();
			jSlider0.setMajorTickSpacing(8);
			jSlider0.setMaximum(80);
			jSlider0.setMinimum(44);
			jSlider0.setMinorTickSpacing(1);
			jSlider0.setPaintLabels(true);
			jSlider0.setPaintTicks(true);
			jSlider0.setSnapToTicks(true);
			jSlider0.setValue(60);
			jSlider0.setDoubleBuffered(true);
			jSlider0.setAutoscrolls(true);
			jSlider0.setBorder(null);
		}
		return jSlider0;
	}

	int getNoteValue()
	{
		return getJSlider0().getValue();
	}
	

	@SuppressWarnings("unused")
	private static void installLnF() {
		
		try {
			String lnfClassname = PREFERRED_LOOK_AND_FEEL;
			if (lnfClassname == null)
				lnfClassname = UIManager.getCrossPlatformLookAndFeelClassName();
			UIManager.setLookAndFeel(lnfClassname);
		} catch (Exception e) {
			System.err.println("Cannot install " + PREFERRED_LOOK_AND_FEEL
					+ " on this platform:" + e.getMessage());
		}
	}

	/**
	 * Main entry of the class.
	 * Note: This class is only created so that you can easily preview the result at runtime.
	 * It is not expected to be managed by the designer.
	 * You can modify it as you like.
	 */
	public static void main(String[] args) {
		installLnF();
		SwingUtilities.invokeLater(new Runnable() {
			@Override
			public void run() {
				GUI frame = new GUI();
				frame.setDefaultCloseOperation(GUI.EXIT_ON_CLOSE);
				frame.setTitle("hello");
				frame.getContentPane().setPreferredSize(frame.getSize());
				frame.pack();
				frame.setLocationRelativeTo(null);
				frame.setVisible(true);
			}
		});
	}

}
